package cn.edu.cdut.controller;

import cn.edu.cdut.dao.WishInfoDao;
import cn.edu.cdut.dto.MyRes;
import cn.edu.cdut.model.WishInfo;
import cn.edu.cdut.service.DownloadService;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;
import org.jeecgframework.poi.excel.ExcelExportUtil;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
import java.util.List;

/**
 * Author  kobe
 * Created on 2017-06-10-16:17
 */
@RestController
public class DownloadController {

        @Autowired
        private DownloadService downloadService;

        //获得所有文件信息
        @GetMapping("/downloadFileInfo")
        public MyRes getAllDownloadFileInfo() {
                return downloadService.getAllDownloadFileInfo();
        }

}
